/*
 * setblockcrc16.hh
 *
 *  Created on: 2011-1-6
 *      Author: xuhui
 */

#ifndef SETBLOCKCRC16_HH_
#define SETBLOCKCRC16_HH_
#include <click/element.hh>
CLICK_DECLS

class SetBlockCRC16 : public Element {
public:
	SetBlockCRC16();
	~SetBlockCRC16();

	const char *class_name() const	{ return "SetBlockCRC16"; }
	const char *port_count() const	{ return PORTS_1_1; }
	const char *processing() const	{ return AGNOSTIC; }

	int configure(Vector<String> &, ErrorHandler *);
	bool can_live_reconfigure() const	{ return true; }

	Packet *simple_action(Packet *);

	int _block_size;

};

CLICK_ENDDECLS

#endif /* SETBLOCKCRC16_HH_ */
